<!DOCTYPE html>
<html lang="en">
    <head>
        <meta property="qc:admins" content="277436006461116741637571645060454">
        <meta property="wb:webmaster" content="e27d16017de62029">
        <meta http-equiv="content-type" content="text/html; charset=utf-8">
        <meta property="whoisme" content="iyingdi1">
        <title>{$pageTitle}</title>
        <link rel="stylesheet" href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css">
        <link rel="shortcut icon" href="https://static.iyingdi.cn/yingdiWeb/images/Group.png" type="image/x-icon">
    <link rel="stylesheet" type="text/css" href="https://static.iyingdi.cn/yingdiWeb/css/jq/jquery.Jcrop.min.css">
    <link rel="stylesheet" type="text/css" href="https://static.iyingdi.cn/yingdiWeb/css/jq/datetimepicker/jquery.datetimepicker.css">
    <link rel="stylesheet" type="text/css" href="https://static.iyingdi.cn/yingdiWeb/css/jq/emoji/emoji.css">
    <link rel="stylesheet" type="text/css" href="https://iplaymtg.oss-cn-beijing.aliyuncs.com/yingdiWeb/css/jq/editor/wangEditor.css?v=20180625">

    <link rel="stylesheet" type="text/css" href="https://iplaymtg.oss-cn-beijing.aliyuncs.com/yingdiWeb/css/web.css?v=20180504">
    <link rel="stylesheet" type="text/css" href="https://iplaymtg.oss-cn-beijing.aliyuncs.com/yingdiWeb/css/web.error.css">
    <link rel="stylesheet" type="text/css" href="https://iplaymtg.oss-cn-beijing.aliyuncs.com/yingdiWeb/css/utility/web.utility.css?v=20171215">
    <link rel="stylesheet" type="text/css" href="https://iplaymtg.oss-cn-beijing.aliyuncs.com/yingdiWeb/css/utility/web.utility.article.css?v=20180625">
    <link rel="stylesheet" type="text/css" href="https://iplaymtg.oss-cn-beijing.aliyuncs.com/yingdiWeb/css/user/web.user.css?v=20180202">
    <link rel="stylesheet" type="text/css" href="https://iplaymtg.oss-cn-beijing.aliyuncs.com/yingdiWeb/css/home/web.home.css?v=20180411">
    <link rel="stylesheet" type="text/css" href="https://iplaymtg.oss-cn-beijing.aliyuncs.com/yingdiWeb/css/article/web.article.css?v=20180503">
    <link rel="stylesheet" type="text/css" href="https://iplaymtg.oss-cn-beijing.aliyuncs.com/yingdiWeb/css/search/web.search.css?v=20171120">
    <link rel="stylesheet" type="text/css" href="https://iplaymtg.oss-cn-beijing.aliyuncs.com/yingdiWeb/css/content/web.editor.css?v=20180625">
    <link rel="stylesheet" type="text/css" href="https://static.iyingdi.cn/yingdiWeb/css/jq/animate/animate.min.css">

  
	<script src="https://cdn.bootcss.com/jquery/2.1.1/jquery.min.js"></script>
	<script src="https://cdn.bootcss.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>

    <link rel="stylesheet" type="text/css" href="https://f1.webshare.mob.com/code/mob-share.css">
    <link type="text/css" rel="stylesheet" href="https://iplaymtg.oss-cn-beijing.aliyuncs.com/yingdiWeb/css/personal/web.personal.css?v=1530240844424">
    <link type="text/css" rel="stylesheet" href="https://iplaymtg.oss-cn-beijing.aliyuncs.com/yingdiWeb/css/personal/web.personal.home.css?v=1530240844630">
     {block name="style"}{/block}
    <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->


    </head>
<body>
    <div class="web-frame">

    <div class="web-navbar">
        <div class="navbar-innerFrame">
            <div class="navbar-logo">
                <a href="/"><img alt="" src="__THEME_IMG__/logo.png" >
                </a>
            </div>
            <div class="navbar-rightSection">
                <div class="navbar-searchInput">
                    <div class="navbar-searchInputInner">
                        <input type="text" placeholder="搜索资讯、精选...">
                        <a href=""></a>
                    </div>
                    <ul>
                        <div>热门搜索</div>
                        <li>
                            <a href="/search.html?keyword=影之诗&amp;type=1&amp;seed=0" target="_blank">影之诗</a>
                        </li>
                        <li>
                            <a href="/search.html?keyword=狂野&amp;type=1&amp;seed=0" target="_blank">狂野</a>
                        </li>
                        <li>
                            <a href="/search.html?keyword=每日影之诗&amp;type=1&amp;seed=0" target="_blank">每日影之诗</a>
                        </li>
                        <li>
                            <a href="/search.html?keyword=巫妖王&amp;type=1&amp;seed=0" target="_blank">巫妖王</a>
                        </li>
                        <li>
                            <a href="/search.html?keyword=炉石说&amp;type=1&amp;seed=0" target="_blank">炉石说</a>
                        </li>
                    </ul>
                </div>
                <div class="navbar-userInfo">
                    <ul>
                        {eq name=":session('user_login_auth')['uid']" value=""}
                        <li class="navbar-loginButton">
                            <span class="toLoginBtn" data-toggle="modal" data-target="#loginModal">登录</span>
                            <a data-ajax="" href="/web/user/register">注册</a>
                            <!--模式框-->
                            <div class="modal fade" id="loginModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
                                    <div class="modal-dialog">
                                        <div class="modal-content">                                                                                      
                                                <div class="login_frame">
                                                    <div class="login_frame_top">
                                                            <button type="button" class="close" data-dismiss="modal" style="float:left;padding-left:10px;font-size:35px">
                                                                    &times;
                                                            </button>
                                                        <div class="login_logoImg">
                                                            <img src="__THEME_IMG__/logos.png">
                                                        </div>
                                                    </div>
                                                    <form action="{:url('admin/Login/index')}" method="POST">
                                                    <div class="login_frame_content">
                                                        
                                                            <input type="text" id="username" class=" form-control" style="height:50px;margin-bottom:25px" name="username" placeholder="用户名"/>
                                                        
                                                            <input type="password" name="password" id="password" style="height:50px;margin-bottom:25px" class=" form-control" placeholder="密码">
                                                            
                                                            <div class="row">
                                                                <div class="col-sm-8">
                                                                <input type="text"  id="captcha" class=" form-control"  name="captcha" placeholder="验证码" size="10"/>
                                                                </div>
                                                                <div class="col-sm-4">
                                                                <img class="right" src="{:BASE_PATH}{:url('admin/login/verify_img')}" id="code" height="34" onclick="changeVerify()"/>
                                                            </div>
                                                            </div>
                                                        <div>
                                                    
                                                                <label class="small">
                                                                    <input name="rememberme" id="login_state" type="checkbox" checked="checked">记住登录状态</label>
                                                        </div>
                                                        <div style="margin-bottom: 4px;">
                                                            <button id="user-userSubmit" type="submit" style="font-size:19px" class="loginBtn">登录</button>
                                                        </div>
                                                    </div>
                                                </form>
                                                </div>
                                           
                                        </div><!-- /.modal-content -->
                                    </div><!-- /.modal -->
                                </div>
                        </li>
                        {else/}

                        <li class="navbar-msgButton">
                            <span class="hasMesgNow" style=""></span>
                            <a></a>
                            <div class="navbar-submenu">
                                <div class="navbar-submenuTitle"></div>
                                <ul class="navbar-submenuBody">
                                    <li class="article_reply_msg">
                                        <a data-ajax="" href="/web/personal/own/msgInfo?type=article">收到评论</a>
                                        <span class="noticeRemark hidden"></span>
                                    </li>
                                    <li class="forum_reply_msg">
                                        <a data-ajax="" href="/web/personal/own/msgInfo?type=forum">收到回帖</a>
                                        <span class="noticeRemark hidden"></span>
                                    </li>
                                    <li class="secret_chat_msg">
                                        <a data-ajax="" href="/web/personal/own/msgInfo?type=secret">我的私信</a>
                                        <span class="noticeRemark hidden"></span>
                                    </li>
                                    <li class="system_msg">
                                        <a data-ajax="" href="/web/personal/own/msgInfo?type=sys">系统通知</a>
                                        <span class="noticeRemark hidden"></span>
                                    </li>
                                    <li class="public_msg">
                                        <a data-ajax="" href="/web/personal/own/msgInfo?type=public">系统公告</a>
                                        <span class="noticeRemark hidden"></span>
                                    </li>
                                </ul>
                            </div>
                        </li>
                        <li class="navBar-avatarButton">
                            <a>
                                <img class="userHeadImg" src="{:session('user_login_auth')['avatar']}"
                                    onerror="this.src='https://static.iyingdi.cn/static%2Fimg%2Fhead_img.jpg'">
                            </a>
                            <div class="navbar-submenu">
                                <div class="navbar-submenuTitle"></div>
                                
                                <ul class="navbar-submenuBody">
                                    <li style="" id="navbar-userInfo-detail">
                                        <div class="navbar-userName">{:session('user_login_auth')['nickname']}</div>
                                        <div class="navbar-userDetailInfo">
                                            <span class="navbar-user-fire">营火:923</span>
                                        </div>
                                    </li>
                                    <li>
                                        <a data-ajax="" href="{:url('home/User/personal',['id'=>session('user_login_auth')['uid']])}" class="home-page">我的主页</a>
                                    </li>
                                    <li>
                                        <a data-ajax="" href="/web/personal/own">我的营地</a>
                                    </li>
                                    <li>
                                        <a data-ajax="" href="/web/personal/own/infoConfig">资料设置</a>
                                    </li>
                                    <li class="warning">
                                        <a href="{:url('home/Login/logout')}" id="toLogout">退出登录</a>
                                    </li>
                                </ul>
                            </div>
                        </li> 
                        {/eq}
                    </ul>
                </div>
                <div class="navbar-contribute">
                    <a class="to-contribute" href="{:url('cms/article/edit')}">我要投稿</a>
                </div>
            </div>
        </div>
        <div class="navbar-menuFrame">
            <div class="top-level-menu">
                <ul>
                    <li data-title="首页" data-mark="home" class="active">
                        <a data-ajax="" href="/web/home">首页</a>
                    </li>
                    <li class="follows">
                        <a data-ajax="" href="/web/follows">我的关注</a>
                    </li>
                    <li data-id="17" data-title="影之诗" data-mark="verse">
                        <a data-ajax="" href="/web/article/verse?seed=17" data-seedid="17" data-module="article">影之诗</a>
                        <div style="display:none;">
                            <ul class="sub-menu">
                                <li data-seedid="17" data-module="article">
                                    <a data-module="article" data-ajax="" href="/web/article/verse?seed=17">影之诗首页</a>
                                </li>
                                <li data-seedid="17" data-module="decks">
                                    <a data-module="decks" data-ajax="" href="/web/tools/verse/decks">套牌广场</a>
                                </li>
                                <li data-seedid="17" data-module="topic">
                                    <a data-module="topic" data-ajax="" href="/web/topic/verse/home?seed=17">话题</a>
                                </li>
                                <li data-seedid="17" data-module="cards">
                                    <a data-module="cards" data-ajax="" href="/web/tools/verse/cards">卡牌查询</a>
                                </li>
                                <li data-seedid="17" data-module="essence">
                                    <a data-module="essence" data-ajax="" href="/web/article/verse/essence?seed=17">精选文集</a>
                                </li>
                            </ul>
                        </div>
                    </li>
                </ul>
                <div class="setting-seed">
                    <i></i>
                    <span>自定义频道</span>
                </div>
            </div>
            <div class="sub-level-menu hidden">
                <ul></ul>
            </div>
        </div>
    </div>

    <!-- 站点 -->
        {block name="main"}

        {/block}

    		<div class="web-bottomBar">
    			<div class="bottomBar-innerFrame">
    				<div class="bottomBar-logo">
    					<p style="color:white;font-size:20px;">圈子QuanZi</p>
    				</div>
    				<ul class="bottomBar-infoBlock">
    				<li>友情链接：</li>
    					<li><a target="_blank"
    						href="https://www.zhihu.com/">知乎</a></li>&nbsp;&nbsp;&nbsp;&nbsp;
    					<li><a target="_blank" href="http://weibo.com">微博</a></li>&nbsp;&nbsp;&nbsp;&nbsp;
    					<li>前端技术 By <a target="_blank" href="http://www.bootcss.com/">Boostrap</a></li>&nbsp;&nbsp;&nbsp;&nbsp;
    					<li class="report"><a>联系我们</a><span>电话：15733169579&nbsp;&nbsp;&nbsp;&nbsp;邮箱：15733169579@163.com</span></li>
    					<br>
    					<li>2018&nbsp;©&nbsp;</li>
    					<li>计算机科学与技术专业软件工程课程小组</li>&nbsp;&nbsp;
    					<li>如有错误，对您表示抱歉！</li>
    				</ul>
    			</div>
    		</div>

    </div>
{block name="script"}
<script type="text/javascript">
    (function ($) {
      $('input').iCheck({
            checkboxClass:'icheckbox_minimal-blue',
            radioClass:'iradio_minimal-blue',
            increaseArea:'20%' // optional
          });
    })(jQuery);
    
    function changeVerify(){
       // $('#code').attr('src',"{:BASE_PATH}{:url('login/verify_img',['v'=>rand_string(15)])}");
        var url="{:url('admin/login/verify_img')}";
        pos=url.lastIndexOf('.');
        addr=url.substr(0,pos);
        var a=Math.floor(Math.random()*(100000));//使用前台修改 url
        $('#code').attr('src',addr+'/'+a+'.'+'html');
    }
    
    function BindEnter(obj)
    {
        if(obj.keyCode == 13)
          {
              $("#login").click()
          }
    }
    
    $("#login").click(function(){
    
        var username   = $("input[name='username']");
        var password   = $("input[name='password']");
        var captcha    = $("input[name='captcha']");
    
        if($('#login-remember-me').is(':checked')) {
            var rememberme = 1;
        }else {
            var rememberme = 0;
        }
    
        if(username.val()==''){
            username.focus();
            return false
        }
        if(captcha.val()==''){
            captcha.focus();
            return false
        }
        if(password.val()==''){
          password.focus();
          return false
        }
    
        $.ajax({
          type: 'POST',
          url: '{:BASE_PATH}{:url("admin/login/index")}',
          data: {
            username:username.val(),
            password:password.val(),
            captcha:captcha.val(),
            rememberme:rememberme,
          },
          beforeSend:function(){
            layer.load(2,{shade: [0.1,'#fff']});
          },
    
          success:function(data){
            layer.closeAll();
            if(data.code==1){
              window.location.href = data.url; 
            }else{
              layer.msg(data.msg, {icon:5});
              changeVerify();
            }
    
          }
      });
    
    })
    
    </script>
{/block}
</body>
</html>



